package bean;

import java.util.Date;

public class BaseData {

	public static final int REQUEST_GET_READY = 1;

	public static final int REQUEST_PLAY = 2;

	public static final int REQUEST_SURRENDER = 3;

	public static final int CHAT = 4;

	public static final int INTI = 5;

	public static final int RESPONSE_WIN = 6;

	public static final int RESPONSE_FAILED = 7;

	public static final int RESPONSE_TURN = 8;

	public static final int RESPONSE_WAIT = 9;
	
	public static final int RESPONSE_FIRST = 10;
	
	public static final int RESPONSE_SECEND = 11;

	protected int command;

	protected int identify;

	protected String content;

	protected int posX;

	protected int posY;

	protected Date time;
	
	protected String name;
	
	protected String opponentName;
	
	protected String root;

	public BaseData() {
		this.time = new Date();
	}

	public BaseData(int command, int identify, String content, int posX,
			int posY, Date time) {
		super();
		this.command = command;
		this.identify = identify;
		this.content = content;
		this.posX = posX;
		this.posY = posY;
		this.time = time;
	}

	public int getCommand() {
		return command;
	}

	public void setCommand(int command) {
		this.command = command;
	}

	public int getIdentify() {
		return identify;
	}

	public void setIdentify(int identify) {
		this.identify = identify;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public int getPosX() {
		return posX;
	}

	public void setPosX(int posX) {
		this.posX = posX;
	}

	public int getPosY() {
		return posY;
	}

	public void setPosY(int posY) {
		this.posY = posY;
	}

	public Date getTime() {
		return time;
	}

	public void setTime(Date time) {
		this.time = time;
	}

}
